package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author：cxl
 * @Package：com.itheima.mapper
 * @Project：web-project
 * @name：ClazzMapper
 * @Date：2025-09-25 2:00 pm
 * @Filename：ClazzMapper
 */
@Mapper
public interface ClazzMapper {

    List<Clazz> selectAll();

    int add(Clazz clazz);

    Page<Clazz> page(ClazzQueryParam clazzQueryParam);

    void deleteById(Integer id);

    Clazz selectById(Integer id);

    void update(Clazz clazz);
}
